package com.yami.shop.mp.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yami
 */
@TableName( "tz_weixin_subscribe")
@Data
public class WeixinSubscribe  implements Serializable {

    @TableId
    private Integer id;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "消息类型 me.chanjar.weixin.common.api.WxConsts.KefuMsgType")
    private String msgType;

    @Schema(description = "素材id")
    private String mediaId;

    @Schema(description = "发送顺序")
    private Integer seq;

    @Schema(description = "文本内容")
    private String content;

    @Schema(description = "微信素材")
    @TableField(exist = false)
    private WeixinMaterial weixinMaterial;
}
